package top.korori.entity.req;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;


@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "用户修改信息")
public class SvUserEditReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @Length(min = 1,max = 8,message = "用户昵称最长8位")
    @Length(min = 1,message = "用户昵称最小1位")
    @ApiModelProperty("用户昵称")
    private String userName;


    @Min(value = 0,message = "非法性别参数")
    @Max(value = 2,message = "非法性别参数")
    @ApiModelProperty("性别（0 男 1 女 2 保密）")
    private Integer sex;


    @ApiModelProperty("出生日期")
    private LocalDate birthday;

    @ApiModelProperty("简介")
    @TableField("`desc`")
    private String desc;

    @ApiModelProperty("所在地关联地址id")
    private List<Integer> localId;

}
